package com.mldong.holder;

/**
 * 请求参数id持有者
 */
public class RequestParamIdHolder {
    private static final ThreadLocal<String> REQUEST_PARAM_ID_THEAD_LOCAL = new ThreadLocal<>();

    /**
     * 设置当前请求参数id
     * @param vo
     */
    public static void set(String vo) {
        REQUEST_PARAM_ID_THEAD_LOCAL.set(vo);
    }

    /**
     * 获取当前请求参数id
     * @return
     */
    public static String get() {
        return REQUEST_PARAM_ID_THEAD_LOCAL.get();
    }

    /**
     * 删除请求参数id
     */
    public static void remove() {
        REQUEST_PARAM_ID_THEAD_LOCAL.remove();
    }

}
